#include "delay.h"
void delay_us(uint32_t us)
{
    uint32_t delay = us * 8;
    do
    {
        __NOP();
    } while (--delay);
}
void delay_ms(uint32_t ms)
{
    uint32_t delay = ms * 8000;
    do
    {
        __NOP();
    } while (--delay);
}
void delay_s(uint32_t s)
{
    while (s--)
    {
        delay_ms(1000);
    }
}
